﻿/*
 * Created by SharpDevelop.
 * User: user
 * Date: 11/09/2011
 * Time: 22:39
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;

namespace csharp.rad.lavanderia.classes
{
	/// <summary>
	/// Description of ServiceDetail.
	/// </summary>
	public class ServiceDetail : csharp.rad.lavanderia.classes.original.T_ServiceDetail
	{
		public ServiceDetail()
		{
		}
	}
	
	public class ServiceDetails : csharp.rad.lavanderia.classes.original.T_ServiceDetails
	{
		public ServiceDetails()
		{
			
		}
		
		public ServiceDetail get(int index)
		{
			return (ServiceDetail)items[index];
		}
		
		public ServiceDetail get()
		{
			return get(index);
		}
		
		public bool fillListByService(String service_id)
		{
			gsql.prepare();
			gsql.setValue("","*");
			gsql.conditionalWhere = "service_detail_service_id = "+service_id;
			
			return mountList();
		}
	}
}
